<?php $header=$this->action('ZfcAdmin\Controller\AdminController', 'headerAction');
	  $baseUrl = $header->headerarray['baseUrl'];
?>
<?php if(isset($_SESSION['admin'])){?>
<html>
	<center>
		<head>
			<h1>Days</h1>
		</head><br/>
		<body>
			<form id="add_day_form" name="add_day_form" method="post" action="">
				Day Type: <input type="text" name="day_type" value="<? if(isset($this->daytypes_details->day_type) && $this->daytypes_details->day_type!=""){echo $this->daytypes_details->day_type;}else{}?>" id="day_type" placeholder="Please enter day type"><br/><br/>
				Amount for Day type: <input type="text" name="day_amount" value="<? if(isset($this->daytypes_details->day_type_amount) && $this->daytypes_details->day_type_amount!=""){echo $this->daytypes_details->day_type_amount;}else{}?>" id="day_amount" placeholder="Please enter day for amount"><br/><br/>
				<a href="<? echo $baseUrl.'admin/dayamount-lists'?>">Back</a>&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" id="btn_day" name="btn_day" value="Submit" onClick="return addDayType();">
				<input type="hidden" id="hid_day" name="hid_day" value="<? if(isset($this->daytypes_details->day_id) && $this->daytypes_details->day_id!=""){echo $this->daytypes_details->day_id;}else{}?>">
			</form>
		</body>
	</center>
</html>
<? } else {?>
<script>
	window.location=ADMIN_BASE_URL+'admin';
</script>
<?}?>

